﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    public class WebLog
    {
        DAL.WebLog dal = new DAL.WebLog();
        /// <summary>
        /// 添加一条日志
        /// </summary>
        /// <param name="webLog">webLog的模型</param>
        /// <returns>返回添加的行数</returns>
        public int AddSingleLog(Model.WebLog webLog) {
            return dal.AddSingleLog(webLog);
        }
        /// <summary>
        /// 得到日志列表
        /// </summary>
        /// <returns>日志列表</returns>
        public DataTable GetLoglist() {
            return dal.GetLoglist();
        }
         /// <summary>
        /// 根据条件来获得几行数据
        /// </summary>
        /// <param name="rowNb">行数</param>
        /// <param name="sqlcon">条件</param>
        /// <param name="orderCon">排序条件</param>
        /// <returns>相应的几行数据</returns>
        public DataTable getLogRows(int rowNb, string sqlcon, string orderCon) {
            return dal.getLogRows(rowNb, sqlcon, orderCon);
        }
         /// <summary>
        /// 根据id删除单行数据
        /// </summary>
        /// <param name="id">id值</param>
        /// <returns>删除的行数</returns>
        public int delSingle(int id) {
            return dal.delSingle(id);
        }
    }
}
